package com.demo.websocket.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;

//只用于测试websocket 平时不这么用
@Configuration
public class WebMvcConfig extends WebMvcConfigurerAdapter {
	@Override
	public void addViewControllers(ViewControllerRegistry registry) {
		registry.addViewController("/ws_all").setViewName("/ws_all_http");
		registry.addViewController("/ws_rose").setViewName("/ws_rose");
		registry.addViewController("/ws_pakho").setViewName("/ws_pakho");
		registry.addViewController("/ws_sendto").setViewName("/ws_sendto");
		registry.addViewController("/ws_sendtouser").setViewName("/ws_sendtouser");
	}
}
